#pragma once 
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>

#define SIZE 1024
#define MODE 0644
#define OUTALL 0 //  缓冲区满了刷新
#define OUTN   1 //  行刷新
#define OUTNOW 2 //  写入就刷新


typedef struct MY_FILE
{
    int fileno;
    char outbuff[SIZE];
    int outpos;
    int OUTMODE = OUTN;
}MY_FILE;

MY_FILE* _fopen(const char* filename,const char* mode);

size_t _fwrite(cosnt char* buff,size_t size,size_t conut,MY_FILE* file);

void _fclose(const MY_FILE* filename);

